﻿using System;
using System.Web;


/// <summary>
/// 验证是否有权执行方法
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class ValidateAttribute : Attribute
{
	
    public ValidateAttribute(string required, HttpContext context)
	{
        this._required = required;
        this._context = context;
	}

    protected string _required;
    public string Required
    {
        get { return _required; }
    }

    private HttpContext _context;
    protected HttpContext Context
    {
        get { return _context; }
    }

}
